String Examples
The following table provides configuration examples for using strings.
Examples of Using Strings
Message Type |
Condition |
Action |
Action Type |
Action |
Description |
---|---|---|---|---|---|
invite.request |
header.user-agent contains 'X-Lite' |
header.user‑agent |
Modify |
'anonymous UA' |
If the INVITE's User-Agent header contains "X-Lite", replace it with "anonymous UA". |
invite.request |
header.from.url.user=='101;ext=7166' |
header.user‑agent |
Modify |
'anonymous UA' |
If the INVITE's From header has the user part as "101;ext=7166", replace it with "anonymous UA". |
invite.request |
body.sdp contains 'a=bbb\\a=ccc' |
header.user‑agent |
Modify |
'anonymous UA' |
If the INVITE's SDP contains these two lines: a=bbb a=ccc then change the User-Agent header value to "anonymous UA" |